﻿@namespace MudBlazor.UnitTests.TestComponents

<MudTable T="int" Items="items" EditTrigger="EditTrigger" RowEditableFunc="x => x > 5">
    <RowTemplate>
        <MudTd>@context</MudTd>
    </RowTemplate> 
    <RowEditingTemplate>
        <MudTd>
            <MudNumericField T="int" @bind-Value="context" />
        </MudTd>
    </RowEditingTemplate>
</MudTable>

@code {
    public static string __description__ = "The Tr should not allow editing when AllowEditItem returns false.";
    [Parameter] public TableEditTrigger EditTrigger { get; set; } = TableEditTrigger.RowClick;
    private int[] items = new int[] { 5, 10, 20 };
}
